package org.van.financial.service.bill;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.van.financial.dao.BillDao;
import org.van.financial.model.BillDomain;

import java.util.List;

@Service
public class BillServiceImpl implements BillService{

    @Autowired
    private BillDao billDao;

    @Override
    public List<BillDomain> getBillByCond(String bill_name) {
        return billDao.getBillByCond(bill_name);
    }

    @Override
    public List<BillDomain> getBillById(Integer uuid) {
        return billDao.getBillById(uuid);
    }

    @Override
    public void deleteBillById(Integer uuid){
        billDao.deleteBillById(uuid);
    }

    @Override
    public void addNewBill(BillDomain bill){
        billDao.addNewBill(bill);
    }
}
